package cqut.wys.dao.mapper.news;

import cqut.wys.dao.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author wuyoushan
 * @date 2018/2/28
 */
@Mapper
public interface NewsMapper {

    @Select("SELECT * FROM `tb_news` where id = #{id}")
    News findNewsById(@Param("id") int id);
}
